import { Row } from "antd";
import Props from "../base/Props";
import defaultData from "./data";
import { WeaInput,WeaLocaleProvider } from "ecCom";
import React, { Fragment } from "react";
const getLabel = WeaLocaleProvider.getLabel;

export default class FBFooterProps extends Props {
  render() {
    const { btnText } = this.props.data;

    return (
      <Fragment>
        <Row>
          <label>{getLabel('502503','按钮名称')}</label>
          <WeaInput value={btnText} onChange={this.handlePropChange('btnText')} />
        </Row>
      </Fragment>
    );
  }
}

FBFooterProps.defaultProps = {
  data: defaultData
};